/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.sanerzone.smscenter.modules.sms.entity;

import com.sanerzone.jeebase.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 单表生成Entity
 * @author ThinkGem
 * @version 2017-12-25
 */
public class SmsSubmitTemplate extends DataEntity<SmsSubmitTemplate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private String content;		// 模板内容
	private String type;		// 类型
	private Date createtime;		// 创建时间
	private String status;		// 状态
	private String recheckUserId;		// 审核人
	private Date recheckTime;		// 审核时间
	private String recheckRemarks;		// 审核备注
	private String scope;		// 范围
	private Date updatetime;		// 更新时间
	private String level;		// 等级
	
	public SmsSubmitTemplate() {
		super();
	}

	public SmsSubmitTemplate(String id){
		super(id);
	}

	@Length(min=0, max=50, message="name长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=255, message="模板内容长度必须介于 1 和 255 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=10, message="类型长度必须介于 0 和 10 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
	@Length(min=0, max=10, message="状态长度必须介于 0 和 10 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=11, message="审核人长度必须介于 0 和 11 之间")
	public String getRecheckUserId() {
		return recheckUserId;
	}

	public void setRecheckUserId(String recheckUserId) {
		this.recheckUserId = recheckUserId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRecheckTime() {
		return recheckTime;
	}

	public void setRecheckTime(Date recheckTime) {
		this.recheckTime = recheckTime;
	}
	
	@Length(min=0, max=255, message="审核备注长度必须介于 0 和 255 之间")
	public String getRecheckRemarks() {
		return recheckRemarks;
	}

	public void setRecheckRemarks(String recheckRemarks) {
		this.recheckRemarks = recheckRemarks;
	}
	
	@Length(min=0, max=4, message="范围长度必须介于 0 和 4 之间")
	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	
	@Length(min=0, max=4, message="等级长度必须介于 0 和 4 之间")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
}